package com.example.springbootasyncdemo.controller;

import com.example.springbootasyncdemo.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@Slf4j
public class TestController {
    @Autowired
    private TestService testService;

    @GetMapping("/test004")
    public ArrayList<String> testAsyncFeedBack() throws Exception {
        return testService.testAsyncFeedBack();
    }


}
